<?php
class Lottery_authorize_model extends BZ_Model
{
    protected $_table = 'lottery_authorize';

    /**
     * 查找一条
     */
    public function findAuthorizeUid($uid)
    {
        $this->db->select('id');
        $this->db->from($this->_table);
        $this->db->where('authorize_uid', $uid);
        $this->db->where('status', 1);//上架
        $this->db->limit(1);
        return $this->db->get();
    }
}